package com.prig.base.DTO.input;


import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
@ApiModel(value = "权限",description = "请求参数")
public class PermissionDto implements Serializable {

    @ApiModelProperty(value = "标识",example = "123123")
    private long id = 0;
    @JsonProperty("isView")
    @NotNull
    @ApiModelProperty(value = "是否是页面",required = true,example = "true")
    private boolean isView;
    @NotBlank
    @ApiModelProperty(value = "名称",required = true,example = "权限页面")
    private String name;
//    @NotBlank
    @ApiModelProperty(value = "访问链接",required = true,example = "/dsadaas.html")
    private String url;
    @ApiModelProperty(value = "页面icon",required = true,example = "icon-222")
    private String icon;
    @ApiModelProperty(value = "继承id",example = "0")
    private long parentId;
    @ApiModelProperty(value = "继承ids",example = "0,1")
    private String parentIds;
    @ApiModelProperty(value = "排位",example = "0")
    private int sortRank;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public long getParentId() {
        return parentId;
    }

    public void setParentId(long parentId) {
        this.parentId = parentId;
    }

    public String getParentIds() {
        return parentIds;
    }

    public void setParentIds(String parentIds) {
        this.parentIds = parentIds;
    }

    public int getSortRank() {
        return sortRank;
    }

    public void setSortRank(int sortRank) {
        this.sortRank = sortRank;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public boolean getView() {
        return isView;
    }

    public void setView(boolean view) {
        isView = view;
    }
}
